import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { {{pascalCase name}} } from './models/{{kebabCase name}}.entity';
// 将{{pascalCase name}}的服务注入进模块
import { {{pascalCase name}}Service } from './{{kebabCase name}}.service';
import { {{pascalCase name}}Resolver } from './{{kebabCase name}}.resolver';

@Module({
    imports:[TypeOrmModule.forFeature([{{pascalCase name}}])],
    providers:[{{pascalCase name}}Service, {{pascalCase name}}Resolver],
    exports:[{{pascalCase name}}Service],
})
export class {{pascalCase name}}Module {}